package refactoring.replaceSubclassWithDelegate.refactoring;

/**
 * <描述>
 *
 * @author timothy.yang cloudwise
 * @since 2022-05-23 23:53
 */
public class BirdDelegate {
    protected Bird bird;

    public BirdDelegate(BirdParam param, Bird bird) {
        this.bird = bird;
    }

    public String getPlumage() {
        return this.bird.getPlumage() == null ? this.bird.getPlumage() : "average";
    }

    public Integer airSpeedVelocity() {
        return null;
    }
}
